<div class="col-xl-12 col-lg-12 col-md-6">
    <div class="widget widget-popular-post">
        <h6 class="widgettitle">
            <span>@lang('Popular Posts')</span>
        </h6>
        @foreach($popularPost as $data)
        <div class="single-post">
            <div class="part-img">
                <img src="{{asset('assets/images/post/'.$data->thumb)}}" alt="{{__($data->title)}}">
            </div>
            <div class="part-text">
                <h4><a href="{{route('blog.details',[$data->id, str_slug($data->title)])}}">{{str_limit(strip_tags($data->details),40)}}</a></h4>
                <h5>{{date('d M, Y',strtotime($data->created_at))}}</h5>
            </div>
        </div>
        @endforeach
    </div>
</div>